#!/bin/bash

if(($#!=1))
then echo $0 directory
     exit
fi

num=0
for var in $1/*
do
    num=$[num+1]
    if [ -f $var ]
    then 
        echo "file:"
        echo $num:"$var"
    fi
    if [ -d $var ]
    then
    	echo "dir:"
	echo $num:"$var"
    fi

done

#print out the contents of a user's input directory
#and print out whether the content is a directory or a file
